Not able to add html tags through jquery in django [closed]

Posted by user1665581 on Programmers See other posts from Programmers or by user1665581
Published on 2012-12-07T06:38:54Z Indexed on 2012/12/07 11:19 UTC
Read the original article Hit count: 463

Filed under:
|
|

I am trying to add html tags dynamically through jquery in django.

$("#div1").append("<h3> Hey !! </h3>");

$("#div1").append("<br/>");

But they are not working.

However normal text is getting appended properly like

$("#div1").append("Hey i am here");

I even noticed that some of the tags wern't working outside script like

<br>  so i had to replace it with  <br/>

also had to apply closing tag for input and also &nbsp is not working.

what is wrong???

© Programmers or respective owner

Related posts about html

Related posts about jQuery